<%@ page contentType="text/html;charset=UTF-8" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<%@ include file="/common/hallimport.jsp" %>
<link href="${ctx}/css/hall.css" rel="stylesheet">
<link href="${ctx}/css/web_style.css" rel="stylesheet">
<script src="${ctx}/js/web/tab.js"></script>
<title>我的申请-竞价大厅用户中心</title>
</head>
<body>
<%@ include file="/common/halltop_my.jsp" %>
<!-- 开始 -->
<div class="my_window">

	<div style="margin:10px;">
	<form id="applyList_form">
		<input type="hidden" name="page"  value="1">
		<input type="hidden" name="rows"  value="8" id="rows">
		<input type="hidden" name="methodKey"  value="applyOneOrList">
		<input type="hidden" name="userName"  value="${loginUser.userEname}">
		<input type="hidden" name="tag"  value="table" id="tag">
		<input type="text" name="applyName"  value=""  tip="标的名称" placeholder="标的名称" />
		<a class="searchbtn" iconCls="icon-search" onclick="applyListSearch();">查询</a>
	</form>
	</div>
	 <table id="applyList_table"  class="info" cellspacing=1 cellpadding=0 >
		<tr class='active' id="title2" >
			<th>标的名称</th>
			<th>申请人名称</th>
			<th>联系电话</th>
			<th>联系邮箱</th>	
			<th>状态</th>		
		</tr>
	</table>
	
	<div id="applyList_page" class="web_pages"></div>
	<script type="text/template" id="applyList_table_html">
	<? for ( var i = 0; i < rows.length; i++) {?>
		<tr id=item_<?=rows[i].itemId?>>
			<td  onclick="gotohall('<?=rows[i].itemId?>','<?=rows[i].sessionId?>');">
				<?=rows[i].objName?>
			</td>
			<td><?=rows[i].realName?></td>
			<td><?=rows[i].mobile?></td>
			<td><?=rows[i].phone?></td>
			<td><?=rows[i].status==1?'已激活':'未激活'?></td>
		</tr>
	<?}?>  		
	</script>


</div>
<!-- 结束 -->
<%@ include file="/common/hallbottom.jsp" %>	
</body>
</html>

<script>
var itermIds = "";
//查询提交
function applyListSearch(){
	searchSubmit("hall","applyList");
}

function gotohall(itemId,sessionId){
	
	var url="";
	if(itemId != 0){
		url=ctx+spaceDomain+"hall/item/"+itemId;
	}else{
		url=ctx+spaceDomain+"hall/session/"+sessionId;
	}
	window.location.href=url;
}

//初始化加载
$(function(){
	//加载分页列表
	applyListSearch();
	
});

</script>

